package com.white.loggerserver.core

import java.util.concurrent.Executors
import java.util.concurrent.LinkedBlockingQueue
import java.util.concurrent.ThreadPoolExecutor
import java.util.concurrent.TimeUnit

/**
 * Created by ytf on 2020/6/23 023.
 * Description:
 */
object ThreadPool {

    var instance = ThreadPoolExecutor(2, 5, 3,
        TimeUnit.SECONDS, LinkedBlockingQueue(10),
        Executors.defaultThreadFactory(), ThreadPoolExecutor.DiscardPolicy())
}